//
//  YGMessViewController.swift
//  sinaWeiBoGui
//
//  Created by liyonggui on 16/5/9.
//  Copyright © 2016年 liyonggui. All rights reserved.
//

import UIKit

class YGMessViewController: YGBasicViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        setupNavigationBar()
    }
    
    /// 设置导航栏
    private func setupNavigationBar() {
        // 二维码
        navigationItem.rightBarButtonItem = UIBarButtonItem(imageName: "navigationbar_pop", target: self, action: "didClickFriendsearch")
        // 搜索
        navigationItem.leftBarButtonItem = UIBarButtonItem(imageName: "navigationbar_friendsearch", target: self, action: "didClickPop")
        
    }
    
    // MARK: - 点击事件
    func didClickFriendsearch() {
        YGPrint(items: "点击了左边")
    }
    
    func didClickPop() {
        YGPrint(items: "点击了右边")
    }

}
